var fs = require('fs');
var path = require('path');
var url = path.join(__dirname,'./symbol');
var stringTemp = fs.readFileSync(url).toString();
var wordRules = stringTemp.split('#');
var int = new RegExp("[0-9]+"); //匹配整数
var float = new RegExp("[0-9]+\\.[0-9]*"); //匹配浮点数
var varian = new RegExp("[a-zA-Z_]+\\w"); //匹配各种变量名
wordRules.push(int);
wordRules.push(float);
wordRules.push(varian);
exports.wordRules = wordRules;